package com.jt.demo8_anno;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component//key: pig  value:反射对象
public class Pig implements Pet{

    @Override
    public void hello() {
        System.out.println("小居佩琪");
    }
}
